<include file="Public:header" />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title"  class="col-md-6">
            <h5>详细日志</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <form id='commentForm' role="form" method="get" class="form-inline">
                <div class="content clearfix m-b">
                    <div class="form-group">
                        <label>用户名：</label>
                        <input type="text" class="form-control" id="username" name="username" value="{$Think.get.username}">
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary" type="submit" style="margin-top:5px" id="search"><strong>搜 索</strong>
                        </button>
                    </div>
                </div>
            </form>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
				<div class="example-wrap">
					<div class="example">
						<div class="bootstrap-table">
							<div class="fixed-table-container" style="height: 641px; padding-bottom: 36px;">
								<div class="fixed-table-header" style="margin-right: 0px;"></div>
								<div class="fixed-table-body">
									<table id="cusTable" data-height="700" class="table table-hover table-striped">
										<thead>
											<th tabindex="0">
												<div class="th-inner ">留言用户</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">接收人</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">标题</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">类型</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">时间</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">内容</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">操作</div>
											</th>
										</thead>
										<tbody>
											<volist name="list['content']" id="vo">
											<tr>
												<td>{$vo['user']['username']}</td>
												<td><empty name="vo['sendee_user']">公司<else/>会员</empty></td> 
												<td>{$vo['title']}</td>
												<td>{$vo['type']|getMessageTypeName=###}</td>
												<td>{$vo['add_time']|getDateFormat=###}</td>
												<td width="400">
													<div style="overflow:auto;height:50px;">{$vo['content']}</div>
												</td>
												<td><a href="{:U('Service/backUserMessage',['id'=>$vo['id']])}"><button class="btn btn-primary btn-sm " aria-expanded="false">
													留言给用户 
												</button></a></td>
											</tr>
											</volist>
											<tr><td colspan="13">{$list['page']}</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div class="pull-right pagination"></div>
							</div>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
<include file="Public:footer" />
</body>
</html>